﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Compilex.Automata
{
    public interface IState<S>
    {
        string Name { get; set; }
        bool IsAcceptState { get; set; }

        void AddTransition(string input, S destination);

        void AddTransition(Predicate<string> predicate, S Destination);

        void AddTransition(ITransitionRule<S> rule);
    }
}
